/*
 * Log.h
 *
 *  Created on: 2012-3-28
 *      Author: zhazha
 */
#pragma once
#include <cstdlib>
#include <cstdio>
#include <cstdarg>
#include <ctime>

namespace Zha
{

static struct tm *g_logTimePtr= NULL;
static char g_timeStr[32];
 
void UpdateLogTimeStamp();
int outputText(const char* type, const char* fmt, va_list args );

void Log(const char* fmt, ...);
void Error(const char* fmt, ...);

}
